package org.ssmd4.dao;

import org.springframework.stereotype.Repository;
import org.ssmd4.pojo.EbookType;

import java.util.List;

@Repository("ebookTypeMapper")
public interface EbookTypeMapper {
    int save(EbookType ebookType);
    int update(EbookType ebookType);
    EbookType getOneEbookType(int id);

    int getRecordCount(EbookType ebookType);
    List<EbookType> getEbookTypeListByPage(EbookType ebookType);
    List<EbookType> getTopEbookTypeList();
    List<EbookType> getAllEbookTypeList();

    int delete(int id);
    int deleteAll(String[] ids);
}
